<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			   /*function D(){
            var time = new Date();
            var t1 = time.getTime();
            var t2 = t1+10*24*3600*1000;
            var t3=new Date(t2);
            console.log(t3)
            var year = t3.getFullYear();
            var month=t3.getMonth()+1;
			var ate=t3.getDate();
			var day=t3.getDay();
            console.log("10天后是",year,"年",month,"月",ate,"日","周",day);
        }
       D()*/
       /*function D(){
            var time = new Date("2019-2-25");
            var t1 = time.getTime();
            var t2 = t1+10*24*3600*1000;
            var t3=new Date(t2);
            console.log(t3)
            var year = t3.getFullYear();
            var month=t3.getMonth()+1;
			var ate=t3.getDate();
			var day=t3.getDay();
            console.log("10天后是",year,"年",month,"月",ate,"日","周",day);
        }
        D()*/
        /*function D(){
            var time = new Date();
            var t1 = time.getTime();
            var t2 = t1+10*24*3600*1000;
            var t3=new Date("2020-7-7");
            var t4 = (t3-time)/(24*3600*1000);
            var t5 = Math.floor(t4)
            console.log("距离高考还有"+t5+"天");
        }
        D()*/
       
		</script>
	</body>
</html>
